export default {
  namespaced: true,
  state: {
    // 当前登录用户的登录状态
    user: JSON.parse(localStorage.user || 'null')
  },
  mutations: {
    setUser(state, data) {
      state.user = data
      localStorage.user = JSON.stringify(state.user)
    }
  },
  actions: {
  },
  modules: {
  }
}